package learn.test;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @Description
 * @User zero
 * @Datetime 2021/4/26 21:37
 */
public class TaskB extends Task {

    ConcurrentHashMap<String, Integer> map;
    private int z;

    public TaskB(ConcurrentHashMap<String, Integer> map) {
        this.map = map;
    }

    @Override
    void loop() {
        map.put("xx", z++);
    }
}
